package com.xgg.taiwuinfo.utils;

import android.content.Context;

import com.xgg.taiwuinfo.R;

public class Requirement {

    public static final int ATTR_LL = 0;         //膂力
    public static final int ATTR_LM = 1;         //灵敏
    public static final int ATTR_WX = 2;         //悟性
    public static final int ATTR_TZ = 3;         //体质
    public static final int ATTR_GG = 4;         //根骨
    public static final int ATTR_DL = 5;         //定力

    public static final int ATTR_CNT = 6;         //总量

    public static final int GF_NG = 0;         //内功
    public static final int GF_SF = 1;         //身法
    public static final int GF_JJ = 2;         //绝技
    public static final int GF_QZ = 3;         //拳掌
    public static final int GF_ZF = 4;         //指法
    public static final int GF_TF = 5;         //腿法
    public static final int GF_YQ = 6;         //乐器
    public static final int GF_DF = 7;         //刀法
    public static final int GF_JF = 8;         //剑法
    public static final int GF_CB = 9;         //长兵
    public static final int GF_RB = 10;         //软兵
    public static final int GF_QM = 11;         //奇门
    public static final int GF_YS = 12;         //御射
    public static final int GF_AQ = 13;         //暗器

    public static final int GF_CNT = 14;         //总量

    public static final int JY_CY = 0;              //厨艺
    public static final int JY_PJ = 1;              //品鉴
    public static final int JY_DF = 2;              //道法
    public static final int JY_FX = 3;              //佛学
    public static final int JY_YS = 4;              //医术
    public static final int JY_DS = 5;              //毒术
    public static final int JY_SHUS = 6;              //术数
    public static final int JY_ZX = 7;              //杂学
    public static final int JY_YL = 8;              //音律
    public static final int JY_YQ = 9;              //弈棋
    public static final int JY_SHIS = 10;              //诗书
    public static final int JY_HH = 11;              //绘画
    public static final int JY_ZJ = 12;              //织锦
    public static final int JY_ZM = 13;              //制木
    public static final int JY_DZ = 14;              //锻造
    public static final int JY_QJ = 15;              //巧匠

    public static final int JY_CNT = 16;         //总量

    static String[] mGongfaStrArr;
    static String[] mAttrStrArr;
    static String[] mJiyiStrArr;

    static public String getGongfaStr(int index) { return mGongfaStrArr[index];}

    static public String getAttrStr(int index) { return mAttrStrArr[index];}

    static public String getJiyiStr(int index) { return mJiyiStrArr[index];}

    static public void InitConst(Context ctx)
    {
        mGongfaStrArr = new String[GF_CNT];
        mGongfaStrArr[GF_NG] = ctx.getString(R.string.type_neigong);
        mGongfaStrArr[GF_SF] = ctx.getString(R.string.type_shenfa);
        mGongfaStrArr[GF_JJ] = ctx.getString(R.string.type_jueji);
        mGongfaStrArr[GF_QZ] = ctx.getString(R.string.type_cuipo_quanzhang);
        mGongfaStrArr[GF_ZF] = ctx.getString(R.string.type_cuipo_zhifa);
        mGongfaStrArr[GF_TF] = ctx.getString(R.string.type_cuipo_tuifa);
        mGongfaStrArr[GF_YQ] = ctx.getString(R.string.type_cuipo_yueqi);
        mGongfaStrArr[GF_DF] = ctx.getString(R.string.type_cuipo_daofa);
        mGongfaStrArr[GF_JF] = ctx.getString(R.string.type_cuipo_jianfa);
        mGongfaStrArr[GF_CB] = ctx.getString(R.string.type_cuipo_changbing);
        mGongfaStrArr[GF_RB] = ctx.getString(R.string.type_cuipo_ruanbing);
        mGongfaStrArr[GF_QM] = ctx.getString(R.string.type_cuipo_qimen);
        mGongfaStrArr[GF_YS] = ctx.getString(R.string.type_cuipo_yushe);
        mGongfaStrArr[GF_AQ] = ctx.getString(R.string.type_cuipo_anqi);

        mAttrStrArr = new String[ATTR_CNT];
        mAttrStrArr[ATTR_GG] = ctx.getString(R.string.attr_gengu);
        mAttrStrArr[ATTR_LL] = ctx.getString(R.string.attr_lvli);
        mAttrStrArr[ATTR_LM] = ctx.getString(R.string.attr_lingmin);
        mAttrStrArr[ATTR_DL] = ctx.getString(R.string.attr_dingli);
        mAttrStrArr[ATTR_TZ] = ctx.getString(R.string.attr_tizhi);
        mAttrStrArr[ATTR_WX] = ctx.getString(R.string.attr_wuxing);

        mJiyiStrArr = new String[JY_CNT];
        mJiyiStrArr[JY_CY] = ctx.getString(R.string.jy_chuyi);
        mJiyiStrArr[JY_PJ] = ctx.getString(R.string.jy_pinjian);
        mJiyiStrArr[JY_DF] = ctx.getString(R.string.jy_daofa);
        mJiyiStrArr[JY_FX] = ctx.getString(R.string.jy_foxue);
        mJiyiStrArr[JY_YS] = ctx.getString(R.string.jy_yishu);
        mJiyiStrArr[JY_DS] = ctx.getString(R.string.jy_dushu);
        mJiyiStrArr[JY_SHUS] = ctx.getString(R.string.jy_shushu);
        mJiyiStrArr[JY_ZX] = ctx.getString(R.string.jy_zaxue);
        mJiyiStrArr[JY_YL] = ctx.getString(R.string.jy_yinlv);
        mJiyiStrArr[JY_YQ] = ctx.getString(R.string.jy_yiqi);
        mJiyiStrArr[JY_SHIS] = ctx.getString(R.string.jy_shishu);
        mJiyiStrArr[JY_HH] = ctx.getString(R.string.jy_huihua);
        mJiyiStrArr[JY_ZJ] = ctx.getString(R.string.jy_zhijin);
        mJiyiStrArr[JY_ZM] = ctx.getString(R.string.jy_zhimu);
        mJiyiStrArr[JY_DZ] = ctx.getString(R.string.jy_duanzao);
        mJiyiStrArr[JY_QJ] = ctx.getString(R.string.jy_qiaojiang);
    }
}
